str = 'X-DSPAM-Confidence: 0.8457'

colon_pos = str.find(':')
slice = str[colon_pos+1:]
slice = slice.strip()

num = float(slice)

# print(colon_pos)
# print(str[colon_pos])
print(num, type(num))
